<?php

namespace App\Excels\Imports;

use Maatwebsite\Excel\Concerns\ToArray;
use Maatwebsite\Excel\Concerns\WithMappedCells;

class OrderImports implements ToArray
{
    public function mapping(): array
    {
        return [
            'order_id'  => '订单号',
            'delivery_type' => '发货类型',
            'delivery_name' => '快递名称/送货人',
            'delivery_id' => '快递单号/手机号',
        ];
    }

    public function array(array $data)
    {
        return $data;
    }
}
